#include"MushroomMenu.h"
CMushroomMenu::CMushroomMenu()
{
	mushroom=NULL;
}
CMushroomMenu::~CMushroomMenu()
{
	if(mushroom!=NULL) delete mushroom;
}
void CMushroomMenu::Render(LPDIRECT3DDEVICE9 d3ddv, LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image,int index)
{
	switch(index)
	{
	case 0:
		{
			x=200;
			y=200;
		}break;
	case 1:
		{
			x=200;
			y=230;
		}break;
	case 2:
		{
			x=200;
			y=260;
		}break;
	case 3:
		{
			x=200;
			y=290;
		}break;
	case 4:
		{
			x=200;
			y=320;
		}break;
	case 5:
		{
			x=200;
			y=350;
		}break;
	}
	mushroom= new CSprite(true,0,0,16,16,0,0,0);
	mushroom->Render(sprite,image,x,y);
}